public class PC {
    CPU cpu;
    HardDisk HD;
    public void setCPU(CPU c) {
        this.cpu = c;
    }
    public void setHardDisk(HardDisk h) {
        this.HD = h;
    }
    public void show() {
        System.out.println("CPU Speed: " + cpu.getSpeed() + " MHz");
        System.out.println("Hard Disk: " + HD.getAmount() + " GB");
    }
}